using Web.App.Infrastructure.ApplicationMessages.Contracts;
using Web.App.Infrastructure.ApplicationMessages.Implementation;
using Rhino.Mocks;

namespace Webshop20.UnitTests.Application.Operations
{
    public abstract class Testbase
    {
        protected bool callbackWasCalled;
        protected IDomainMessage domainMessage;
        protected FailureMessage failureMessage;
        protected MockRepository mockRepsotiory = new MockRepository();

        protected void Callback(IDomainMessage domainMessage)
        {
            callbackWasCalled = true;
            this.domainMessage = domainMessage;
            failureMessage = (FailureMessage)domainMessage;
        }


    }
}